In C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) is
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Dec 2007 15:23:28 +0000 (15:23 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Dec 2007 15:23:28 +0000 (15:23 +0000)
commit8f8a3b56592acf31ffcbf6b6747e247dd53da355
tree6b7fdf56e3ede7cdb83d04371171a34b1fc2de37
parentf53513b012968240ba490efe873982d213a85d46
In C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) is
said to be undefined if the value to be put is n can't fit.  I guess
we can safely consider that the same applies to printf.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
extras/mini-os/lib/printf.c
xen/common/vsprintf.c